package org.dromara.system.domain.bo;

import org.dromara.system.domain.WbMinuteFile;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 中标结果附件业务对象 wb_minute_file
 *
 * @author Lion Li
 * @date 2024-05-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WbMinuteFile.class, reverseConvertGenerate = false)
public class WbMinuteFileBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 中标结果公告ID
     */
    @NotNull(message = "中标结果公告ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long wbMinuteBidBagId;

    /**
     * 文件原始名称
     */
    @NotBlank(message = "文件原始名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileOriginalName;

    /**
     * 附件名称
     */
    @NotBlank(message = "附件名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileName;

    /**
     * 附件类型
     */
    private Long fileType;

    /**
     * 地址
     */
    private String url;

    /**
     * 附件大小
     */
    private Long fileSize;

    /**
     * 备注
     */
    private String remark;

    private Long ossId;


}
